//
//  HWWebUtils.h
//  94hwan
//
//  Created by 金石 on 2018/4/28.
//  Copyright © 2018年 孔祥刚. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
//#import <AFNetworking/AFNetworking-umbrella.h>


@interface HWWebUtils : AFHTTPSessionManager
+ (void)doGetWithParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;
+ (void)doGetWithSearchParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;

+ (void)doPostWithParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;


+ (int)getNetworkStatus;

+ (void)doGetWithURL:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;

+ (void)doGetWithCustomerParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;


// 支付宝支付
+ (void)doGetWithAliPayParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;

// 微信支付
+ (void)doGetWithWXPayParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;

// 上传图片

+ (void)doPostWithUpImagesParameters:(nullable id)parameters progress:(void(^ __nullable)(CGFloat progress))progress success:(void(^ _Nonnull)(id response))success failure:(void(^ _Nonnull)(NSString *error))failure;




@end
